#ifndef     TEXTMAP_H_
# define    TEXTMAP_H_

# include   <list>
# include   "IMap.h"

class TextMap : public IMap
{
public:
    virtual void loadMap(std::string const & filename);
    virtual vector getSize();
    virtual void collision(GameObject & obj, float const elapsedTime) const;
    virtual void draw(sf::RenderWindow & app, sf::Sprite & sprite) const;

private:
    typedef std::list<GameObject>::iterator GameObjIt;

private:
    vector                  _size;
    std::list<GameObject>   _objList;
    GameObjIt               _begin, _end;
};

#endif   /* TEXTMAP_H_ */
